// @ts-nocheck
import React from 'react';
import { ApplyPluginsType } from 'C:/Users/yehongwei/Desktop/新建文件夹 (2)/pc/node_modules/umi/node_modules/@umijs/runtime';
import * as umiExports from './umiExports';
import { plugin } from './plugin';

export function getRoutes() {
  const routes = [
  {
    "path": "/",
    "Compoent": "@/pages/index",
    "routes": [
      {
        "path": "/home",
        "component": require('@/pages/home/Home').default,
        "routes": [
          {
            "path": "/home/createActivity",
            "component": require('@/pages/home/createActivity/createActivity.js').default,
            "title": "创建活动",
            "exact": true
          },
          {
            "path": "/home/createActivity/activityDetail",
            "component": require('@/pages/home/createActivity/components/activityDetail/activityDetail.js').default,
            "title": "活动详情",
            "exact": true
          },
          {
            "path": "/home/createActivity/addCreateActivity",
            "component": require('@/pages/home/createActivity/components/addCreateActivity/addCreateActivity.js').default,
            "title": "创建活动",
            "exact": true
          },
          {
            "path": "/home/lotteryWhiteList",
            "component": require('@/pages/home/lotteryWhiteList/lotteryWhiteList.js').default,
            "title": "白名单",
            "exact": true
          },
          {
            "path": "/home/lotteryWhiteList/setWhiteList",
            "component": require('@/pages/home/lotteryWhiteList/components/setWhiteList/setWhiteList.js').default,
            "title": "设置白名单",
            "exact": true
          },
          {
            "path": "/home/activityComment",
            "component": require('@/pages/home/commentActivity/commentActivity.js').default,
            "title": "表单",
            "exact": true
          },
          {
            "path": "/home/activityComment/addCreateProject",
            "component": require('@/pages/home/commentActivity/components/addCreateProject/addCreateProject.js').default,
            "title": "分步表单",
            "exact": true
          }
        ]
      },
      {
        "path": "/login",
        "component": require('@/pages/login/Login').default,
        "exact": true
      }
    ]
  }
];

  // allow user to extend routes
  plugin.applyPlugins({
    key: 'patchRoutes',
    type: ApplyPluginsType.event,
    args: { routes },
  });

  return routes;
}
